package cn.tedu.service;

import cn.tedu.pojo.Student;
import org.springframework.stereotype.Component;

@Component
public class StudentServiceImpl implements StudentService {

    @Override
    public Student get(Student student) {
        Student s = new Student();
        s.setName(student.getName());
        s.setSex(student.getSex());
        s.setAge(student.getAge());
        System.out.println(s);
        return s;
    }

    @Override
    public void add(Student student) {
        System.out.println(student);
    }
}
